import request from '@/utils/request'
const api_name = '/vod/teacher/video'

export function deleteVideoById(videoId) {
  return request({
    url: `${api_name}/${videoId}`,
    method: 'delete'
  })
}

export function getUploadAuth(title,fileName) {
  return request({
    url: `${api_name}/get-upload-auth/${title}/${fileName}`,
    method: 'get'
  })
}

export function refreshUploadAuth(videoId) {
  return request({
    url: `${api_name}/refresh-upload-auth/${videoId}`,
    method: 'get'
  })
}
